package com.linwen.javase.desgin_pattern.action.mediator;

/**
 * @ClassName Colleague
 * @Description
 * @Author lin
 * @Date 2022/6/29 上午12:49
 * @Version V1.0
 */
//抽象同事类
abstract class Colleague {
    protected Mediator mediator;
    public void setMedium(Mediator mediator) {
        this.mediator = mediator;
    }
    public abstract void receive();
    public abstract void send();
}